#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import administrator_blueprint
from api_1_0.administratorResource.administratorResource import AdministratorResource
from api_1_0.administratorResource.administratorOtherResource import AdminAddResource, AdminUpdateResource, \
    AdminUpdatePasswordResource, AdminImgUpdateResource

api = Api(administrator_blueprint)

api.add_resource(AdministratorResource, '/administrator/<admin_id>', '/administrator', endpoint='administrator')

# 注册超管账号
api.add_resource(AdminAddResource, '/admin/add', endpoint='add_admin')

# 修改超管账号信息
api.add_resource(AdminUpdateResource, '/admin/update', endpoint='update_admin')

# 修改超管密码
api.add_resource(AdminUpdatePasswordResource, '/admin/update/password', endpoint='update_adminPassword')

# 修改超管头像
api.add_resource(AdminImgUpdateResource, '/admin/update/img', endpoint='update_adminImg')
